package com.dz.xjd.ui.contract;

import com.dz.xjd.ui.base.BaseModel;
import com.dz.xjd.ui.base.BasePresenter;
import com.dz.xjd.ui.base.BaseView;

import rx.Observable;

public interface LoginContract {
    interface Model extends BaseModel {
        Observable<String> getLoginData(String header, String params);
        Observable<String> sendValidate(String header, String params);
    }

    interface View extends BaseView {
        void returnLoginData(int code);
        void returnsendValidateData(int code);
    }

    abstract static class Presenter extends BasePresenter<View, Model> {
        public abstract void getLoginRequest(String header, String params);
        public abstract void sendValidateRequest(String header, String params);
    }
}
